export const tabs = [
    {
        type: 'profile',
        name: '个人信息',
        icon: 'fa fa-user',
        path: '/index'
    },
    {
        type: 'password',
        name: '修改密码',
        icon: 'fa fa-lock',
        path: '/password'
    }
];

export const profileItems = [
    {
        id: 'nickName',
        type: 'input',
        title: '昵称',
        input_width: 8,
        callback: 'changeNickName'
    },
    {
        id: 'userName',
        type: 'input',
        title: '用户名',
        input_width: 8,
        placeholder: '请输入用户名',
        callback: 'changeUserName'
    },
    {
        id: 'email',
        type: 'input',
        title: '邮箱',
        input_width: 8,
        placeholder: '请输入邮箱',
        callback: 'changeEmail'
    }
];

export const passwordItems = [
    {
        id: 'oldPassword',
        type: 'input',
        title: '旧密码',
        input_width: 8,
        placeholder: '请输入旧密码',
        password: true,
        callback: 'changeOldPassword'
    },
    {
        id: 'newPassword',
        type: 'input',
        title: '新密码',
        input_width: 8,
        placeholder: '请输入新密码',
        password: true,
        relate: 'oldPassword',
        callback: 'changeNewPassword'
    },
    {
        id: 'newPasswordRepeat',
        type: 'input',
        title: '确认密码',
        input_width: 8,
        placeholder: '请再次输入新密码',
        password: true,
        relate: 'newPassword',
        callback: 'changeNewPasswordRepeat'
    }
];

